Skip to content

Conversation

@conico974
Copy link
Contributor

Refactor header handling to ensure fixes apply only once and only if necessary. Update tests to validate the new behavior of cache-control headers.

This fixes stale cache control header (for ISR) overriding cache control set in the middleware

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

🦋 Changeset detected

Latest commit: 38664c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@opennextjs/aws Patch
app-pages-router Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 28.06% 2861 / 10196
🔵 Statements 28.06% 2861 / 10196
🔵 Functions 52.46% 149 / 284
🔵 Branches 76.48% 722 / 944
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/open-next/src/core/routing/util.ts 88.67% 91.07% 95.45% 88.67% 174-179, 245-246, 322-324, 408-432
packages/open-next/src/http/openNextResponse.ts 1.35% 0% 0% 1.35% 20-433
Generated in workflow #1638 for commit 38664c0 by the Vitest Coverage Report Action

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 13, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/aws@1036

commit: 38664c0

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix.
LGTM, one nit.

Copy link
Contributor

@sommeeeer sommeeeer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

conico974 and others added 2 commits November 17, 2025 19:34
Co-authored-by: Victor Berchet <victor@suumit.com>
@conico974 conico974 merged commit e821f51 into main Nov 18, 2025
3 checks passed
@conico974 conico974 deleted the conico/fix-isr-cache branch November 18, 2025 09:37
@github-actions github-actions bot mentioned this pull request Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants